<?php
require_once 'BaseController.php';

/**
 * 【PC版】Ajax店舗検索 コントローラ
 */
class Renew_ShopajaxController extends Renew_BaseController
{

    /**
     * メインアクション
     */
    public function indexAction()
    {
        // makes disable renderer
        $this->_helper->viewRenderer->setNoRender();

        $params = $this->getParameters();

        $pref = $params['prefcd'];
        $params['todoufukenCd'] = $pref;

        $model = new Search_Model_Selareasearch();

        $data = $model->getSearchShopList2($params);

        $ret = array();
        foreach ($data as $val)
        {
            $ret[] = $val['M05_TENPO_NAME'];
        }
        echo implode(';', $ret);
        exit();
    }

}
?>